#include<stdio.h>
#include"process.h"
#include<stdlib.h>
#include<string.h>
void flushdown(double current,double total)
{
    int rate=current/total*100;
    char s[101];
    
    memset(s,' ',101);
    s[100]='\0';
    memset(s,'#',rate);
    printf("[%-100s]\r",s); 
    fflush(stdout);
}
